import type {Side,Placement} from '@floating-ui/dom';
//region 获取placement(前半部分)
function getMainPlacement(placement:Placement):Side{
	const sepIndex=placement.indexOf('-');
	// @ts-ignore
	return sepIndex===-1?placement:placement.slice(0,sepIndex);
}
//endregion
export {
	getMainPlacement,
};